package com.slanmao.common.entity;

import com.slanmao.common.annotation.XStreamCDATA;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.Data;

/**
 * <CODE>ScanCodeInfo</CODE>
 *
 * @author fenrir
 * @Date 19-2-27
 */
@Data
public class ScanCodeInfo {

    @XStreamAlias("ScanType")
    @XStreamCDATA
    private String scanType;

    @XStreamAlias("ScanResult")
    @XStreamCDATA
    private String scanResult;


    /**
     * Xstream好像搞不定子类的CDATA标签 留着下次实现
     * @return
     */


    public void setScanType(String scanType) {
        this.scanType = "<![CDATA["+scanType+"]]>";
    }

    public void setScanResult(String scanResult) {
        this.scanResult = "<![CDATA["+scanResult+"]]>";
    }
}
